import numpy as np
#数组专制
# arr=np.random.randint(1,100, size=(3,4))
# print(arr)
# print(arr.T)
# print(arr.reshape(2,6))



#数组的数学运算
arr1=np.random.randint(1,10,size=(3,3))
print(arr1)
arr2=np.random.randint(1,10,size=3)
print(arr2)
arr3=np.random.rand(3,3)*10
print(arr3)
print(np.add(arr2,arr1))
print(np.multiply(arr1,arr3))
print(np.power(arr1,arr2,dtype='int16'))
print(np.reciprocal(arr1,dtype='float'))
print(np.around(arr3,decimals=1))
print(np.cos(arr1 * np.pi / 180))
